
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>毕设:职工健康信息详情</title>
    <style type="text/css">
        ul li {list-style-type: none}
    </style>
</head>
<style>

    .f{
        text-align: center;
    }
</style>
<body>
<h1 class="f">职工信健康息详情</h1>

<div class="f">
    <span class="f" >
<form th:action="@{/lgbs/doUpdateZhiGong}" method="post"><!--将数据传入doUpdateGoods-->
    <input type="hidden" name="id" th:value="${zhigong.id}">
    <ul>
        <li>name:
        <li><input type="text" name="name" th:value="${zhigong.name}">
        <li>性别:
        <li><select th:field="${zhigong.xingbie}" th:value="${zhigong.xingbie}" name="xingbie" >
            <!--           <option value="">请选择性别</option>-->
            <option th:selected="${zhigong.xingbie=='男'}" value="男" name="xingbie">男</option>
            <option th:selected="${zhigong.xingbie=='女'}" value="女" name="xingbie">女</option>
           <select/>
        <li>电话:
        <li><input type="text" name="lxfs" th:value="${zhigong.lxfs}">
        <li>年龄:
        <li><input type="text" name="nianing" th:value="${zhigong.nianing}">
        <li>身高:
        <li><input type="text" name="shengao" th:value="${zhigong.shengao}">
        <li>体重:
        <li><input type="text" name="tizhong" th:value="${zhigong.tizhong}">
        <li>血压:
        <li><input type="text" name="yueya" th:value="${zhigong.yueya}">
        <li>指标:
<!--        <li><input type="text" name="zhibiao" th:value="${zhigong.zhibiao}">-->
        <li><select th:field="${zhigong.zhibiao}" th:value="${zhigong.zhibiao}" name="zhibiao" >
<!--           <option value="">请选择指标</option>-->
           <option th:selected="${zhigong.zhibiao=='不及格'}" value="不及格" name="zhibiao">不及格</option>
           <option th:selected="${zhigong.zhibiao=='及格'}" value="及格" name="zhibiao">及格</option>
           <option th:selected="${zhigong.zhibiao=='良好'}" value="良好" name="zhibiao">良好</option>
           <option th:selected="${zhigong.zhibiao=='优秀'}" value="很优秀" name="zhibiao">优秀</option>
        <select/>
        <li>备注:
        <li><textarea rows="4" cols="100" name="beizhu" th:text="${zhigong.beizhu}"></textarea>
        <li><input type="submit" value="修改"><!--点击 -->
    </ul>

</form>
<a th:href="@{/lgbs/homepage}">返回主页</a><!--点击跳入lgbs.homepage方法-->

    </span>
</div>
</body>
<script type="text/javascript">
    $(function(){
        //回显 schoolCode  下拉框id  ${schoolCode} 后台放作用域里的值
        $("#schoolCode option").each(function(){
            if($(this).val() == '${fn}'){
                $(this).attr("selected", true);
            }
        });
    });
    $('#testSelect option:selected') .val();//Jquery获取选中的值


</script>


</html>
